package com.cpa.admin.model;

import com.cpa.admin.utils.UUIdGenId;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
* Created by Mybatis Generator 2018/11/10
 * @author zhen.zhao01
 */
@Data
@Table(name = "user_order")
public class UserOrderDo implements Serializable {

    @Id
    @KeySql(genId = UUIdGenId.class)
    private String id;

    /** 用户ID*/
    private String userId;

    /** 产品ID*/
    private String productId;

    /** 订单数量*/
    private Integer settleCount;

    /** 结算类型: 1.立即发布 2.定时推送*/
    private Integer settleType;

    /** 更新时间*/
    private Date updateTime;

    /** 创建时间*/
    private Date createTime;

    /** 创建者*/
    private String createBy;

    /** 删除标记*/
    private Integer deleteFlag;

    /** 定时器是否处理, settle_type为1时一直默认为1,  为2时, 默认为0. 直到定时器处理为止*/
    private Integer lazyStatus;

    private static final long serialVersionUID = 1L;
}